package gof.com.yew.builder;

public class DiscountMealBuilder implements MealBuilder {
	McDonaldMeal meal = new McDonaldMeal();

	@Override
	public MealBuilder produceBacon(String name) {
		Bacon bacon = new Bacon(name);
		meal.setBacon(bacon);
		return this;
	}

	@Override
	public MealBuilder produceChicken(String name, Integer count) {
		Chicken chicken = new Chicken(name, count);
		meal.setChicken(chicken);
		return this;
	}

	@Override
	public MealBuilder produceCoCoCoLe(String size, String warm) {
		CoCoCoLe coco = new CoCoCoLe(size, warm);
		meal.setCoco(coco);
		return this;
	}

	@Override
	public McDonaldMeal build() {
		return meal;
	}
	
}
